﻿@using BemIt
@using Masa.Blazor.Core

<div class="@_modifierBuilder.Add(Filled).AddTheme(CascadingTheme).AddClass(Class)"
     Style="@Style">
    <span class="@_block.Element("title").AppendClasses(TitleClass)">
        @Title
    </span>
    @ChildContent
</div>

@code {

    private static Block _block = new("m-outline-card");
    private ModifierBuilder _modifierBuilder = _block.CreateModifierBuilder();

    [CascadingParameter(Name = "MasaBlazorCascadingTheme")]
    public string CascadingTheme { get; set; } = null!;

    [Parameter] public string? Class { get; set; }

    [Parameter] public string? Style { get; set; }

    [Parameter] public RenderFragment? ChildContent { get; set; }

    [Parameter] public string? Title { get; set; }

    [Parameter] public string? TitleClass { get; set; }

    [Parameter] public bool Filled { get; set; }

}